Simple_History\WP_REST_Events_Controller B

Total Complexity 85
Dependencies 12
Dependents 1
Total lines 1,188
Lines of code 820
Logical lines of code 234
Comment lines 225
Methods 19
Properties 1

Methods 19

Method Rating Maintainability Complexity Lines of code
prepare_item_for_response()
C
31 29 110
get_items()
A
37 10 78
create_item()
A
43 8 51
get_collection_params()
A
32 1 154
get_item_schema()
A
35 2 114
validate_initiator_param()
S
50 7 29
register_routes()
S
36 1 112
get_has_updates()
S
45 3 44
get_item_permissions_check()
S
53 4 25
stick_event()
S
56 3 19
unstick_event()
S
56 3 19
update_item_permissions_check()
S
58 3 17
sanitize_initiator_param()
S
67 3 8
get_single_event()
S
63 2 11
get_items_permissions_check()
S
64 2 10
__construct()
S
73 1 5
get_item()
S
70 1 6
get_collection_params_for_has_updates()
S
73 1 5
create_item_permissions_check()
S
80 1 3